package _case

import "fmt"

type AnimalI interface {
	//吃
	Each()
	//喝
	Drink()
	//睡觉
	Sleep()
	//奔跑
	Run()
}

type Animal struct {
}

//func (a *Animal) Each()  {}
//func (a *Animal) Drink() {}
//func (a *Animal) Sleep() {}
//func (a *Animal) Run()   {}

func (a Animal) Each() {
	fmt.Println("Animal Each 接口默认实现")
}
func (a Animal) Drink() {
	fmt.Println("Animal Drink 接口默认实现")
}

func (a Animal) Sleep() {
	fmt.Println("Animal Sleep 接口默认实现")
}
func (a Animal) Run() {
	fmt.Println("Animal Run 接口默认实现")
}
